package com.mchsdk.paysdk.http;

import com.lidroid.xutils.HttpUtils;
import com.lidroid.xutils.http.RequestParams;
import com.lidroid.xutils.http.callback.RequestCallBack;
import com.lidroid.xutils.http.client.HttpRequest;
import com.lidroid.xutils.http.client.HttpRequest.HttpMethod;
import com.mchsdk.paysdk.utils.MCLog;
import com.mchsdk.paysdk.utils.VerifyCodeCookisStore;

class HTTPPost {
static	HttpUtils http;
	public static void post(String url, RequestParams params,
			RequestCallBack<String> requestCallBack) {
		HttpMethod httpMethod = HttpMethod.POST;
		http= new HttpUtils();
		if(null != VerifyCodeCookisStore.cookieStore){
			http.configCookieStore(VerifyCodeCookisStore.cookieStore);
			MCLog.e("1", "fun#post cookieStore not null");
		}else{
			MCLog.e("2", "fun#post cookieStore is null");
		}
		http.send(httpMethod, url, params, requestCallBack);
	}
}
